/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/6 10:02
 * @Copyright 博为峰
 */
public class Demo01 {
    public static void main(String[] args) {
        //java中整数默认是int类型
        byte b = 6;
        short s = 9;//短整型
        int i = 10;
        long l = 20;//长整形

        float f = 3.14f;//java中小数默认是double类型, 可以使用f或F表示float类型数据
        double d = 3.14;

        boolean bl = true;//false

        char c = 'a';
        c = '你';

        System.out.println(6);//十进制 int
        System.out.println(070);//八进制
        System.out.println(0x38);
        System.out.println(20L);//long类型
        System.out.println(3.14);//double
        System.out.println(3.14f);//float
    }
}
